package com.zhx.user;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.zhx.data.DbUtil;
import com.zhx.entity.SysUser;

public class UserService {
	
	public SysUser findByUserName(String UserName) {
		DbUtil dbUtil = new DbUtil();
		SysUser sysUser = new SysUser();
		try {
			ResultSet rs = dbUtil.executeQuery("select * from sys_user");
			while(rs.next()) {
				System.out.println("��ѯ���ݿ��ȡuser_name��"+rs.getString("user_name"));
				System.out.println("��ѯ���ݿ��ȡuser_password��"+rs.getString("user_password"));
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}

}
